From addbb411fa2d7a0475286fa8b13480f0314b601d Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Fri, 29 Sep 2006 11:28:04 +0100 Subject: [PATCH] [HVM] Disable VMX/SVM on auxiliary processors when shutting down an SMP system. With Intel VT, VMXOFF needs to be executed before halting the CPU. Without this fix Xen or Linux is unable to start up the CPU after a kexec reboot. Tested using x86_32 on a Pentium D 930. Signed-Off-By: Magnus Damm --- xen/arch/x86/smp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/arch/x86/smp.c b/xen/arch/x86/smp.c index 27dc4daf87..2d14240039 100644 --- a/xen/arch/x86/smp.c +++ b/xen/arch/x86/smp.c @@ -21,6 +21,7 @@ #include #include #include +#include #include /* @@ -306,6 +307,7 @@ static void stop_this_cpu (void *dummy) local_irq_disable(); disable_local_APIC(); + hvm_disable(); for ( ; ; ) __asm__ __volatile__ ( "hlt" ); -- 2.30.2